package org.giovanolli.mumi.entities.filter;

import java.io.Serializable;

/**
 * The Class SortCriteria.
 */
public class SortCriteria implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 3988871568360884411L;

	/** The attribute. */
	private String attribute;

	/** The asc. */
	private Boolean asc;

	/**
	 * Instantiates a new sort criteria.
	 * 
	 * @param attribute
	 *            the attribute
	 */
	public SortCriteria(String attribute) {
		this(attribute, true);
	}

	/**
	 * Instantiates a new sort criteria.
	 * 
	 * @param attribute
	 *            the attribute
	 * @param asc
	 *            the asc
	 */
	public SortCriteria(String attribute, Boolean asc) {
		this.attribute = attribute;
		this.asc = asc;
	}

	/**
	 * Gets the asc.
	 * 
	 * @return the asc
	 */
	public Boolean getAsc() {
		return asc;
	}

	/**
	 * Gets the attribute.
	 * 
	 * @return the attribute
	 */
	public String getAttribute() {
		return attribute;
	}

	/**
	 * Sets the asc.
	 * 
	 * @param asc
	 *            the new asc
	 */
	public void setAsc(Boolean asc) {
		this.asc = asc;
	}

	/**
	 * Sets the attribute.
	 * 
	 * @param attribute
	 *            the new attribute
	 */
	public void setAttribute(String attribute) {
		this.attribute = attribute;
	}

}
